home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / init.d / atd < prev    next >
Text File  |  2008-07-10  |  1KB  |  49 lines

  1. #! /bin/sh -e
  2. ### BEGIN INIT INFO
  3. # Provides:          atd
  4. # Required-Start:    $syslog $time $remote_fs
  5. # Required-Stop:     $syslog $time $remote_fs
  6. # Default-Start:     2 3 4 5
  7. # Default-Stop:      1
  8. # Short-Description: Deferred execution scheduler
  9. # Description:       Debian init script for the atd deferred executions
  10. #                    scheduler
  11. ### END INIT INFO
  12. #
  13. # Author:    Ryan Murray <rmurray@debian.org>
  14. #
  15. set -e
  16.  
  17. PATH=/bin:/usr/bin:/sbin:/usr/sbin
  18. DAEMON=/usr/sbin/atd
  19.  
  20. test -x $DAEMON || exit 0
  21.  
  22. . /lib/lsb/init-functions
  23.  
  24. case "$1" in
  25.     start)
  26.     log_daemon_msg "Starting deferred execution scheduler" "atd"
  27.     start_daemon $DAEMON
  28.     log_end_msg $?
  29.     ;;
  30.   stop)
  31.     log_daemon_msg "Stopping deferred execution scheduler" "atd"
  32.     killproc $DAEMON
  33.     log_end_msg $?
  34.     ;;
  35.   force-reload|restart)
  36.     $0 stop
  37.     $0 start
  38.     ;;
  39.   status)
  40.     status_of_proc $DAEMON atd && exit 0 || exit $?
  41.     ;;
  42.   *)
  43.     echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|status}"
  44.     exit 1
  45.     ;;
  46. esac
  47.  
  48. exit 0
  49.